
/**
 * 账号列表
 * Created by WangZhenJia on 2017/5/17.
 */
function JBSFrame_account(){
	JBSFrame.call(this);

	var self = this;
	self.account_table = null;

	//过滤数据
	self.filterData = {};

	self.initUI = function(){
		//渲染表格
		self.account_table = ReactDOM.render(<RTable url="" />,document.getElementById("component-table"));

	}

	self.getFilterData = function(){
		self.filterData = {
			id:$("#filter-id").val(),  //会员账号
			acctName:$("#filter-acctName").val(),  //账号名称
		}
	}
}


/*
 //body load
 --------------------------------------------------------------------*/
var esteel_account;
$(document).ready(function(e) {
	esteel_account = new JBSFrame_account();
	//初始化UI
	esteel_account.initUI()
});

//账号名称
function changeAcctName(target){
	var value = target.value;
	esteel_account.getFilterData();
	esteel_account.account_table.ajaxRequestData(esteel_account.filterData,1);
}
//会员账号
function changeId(target){
	var value = target.value;
	esteel_account.getFilterData();
	esteel_account.account_table.ajaxRequestData(esteel_account.filterData,1);
}
